<?php /* Smarty version 2.6.20, created on 2016-07-22 12:13:18
         compiled from ./supplieProducts/view.php */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('block', 'products', './supplieProducts/view.php', 5, false),array('block', 'stocks', './supplieProducts/view.php', 52, false),array('modifier', 'nl2br', './supplieProducts/view.php', 60, false),)), $this); ?>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "admin/top.php", 'smarty_include_vars' => array('subject' => 'products')));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "products/top.php", 'smarty_include_vars' => array('subject' => 'products')));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
<div id="content">
  <form method="post">
  <?php $this->_tag_stack[] = array('products', array('limit' => 1,'id' => $this->_tpl_vars['segment']['id'])); $_block_repeat=true;smarty_block_products($this->_tag_stack[count($this->_tag_stack)-1][1], null, $this, $_block_repeat);while ($_block_repeat) { ob_start(); ?>
    <table width="100%" border="0" cellpadding="5" cellspacing="0" id="editor">
      <tr>
        <td width="100" class="title">编号:</td>
        <td class="content"><?php echo $this->_tpl_vars['products']['id']; ?>
</td>
      </tr>
      <tr>
        <td class="title">产品名称:</td>
        <td class="content"><?php echo $this->_tpl_vars['products']['pname']; ?>
</td>
      </tr>
      <tr>
        <td class="title">产品规格:</td>
        <td class="content"><?php echo $this->_tpl_vars['products']['spec']; ?>
&nbsp;</td>
      </tr>
      <tr>
        <td class="title">采购单价:</td>
        <td class="content"><?php echo $this->_tpl_vars['products']['pricebuy']; ?>
&nbsp;</td>
      </tr>
      <tr>
        <td class="title">销售底价:</td>
        <td class="content"><?php echo $this->_tpl_vars['products']['priceundersell']; ?>
&nbsp;</td>
      </tr>
      <tr>
        <td class="title">销售单价:</td>
        <td class="content"><?php echo $this->_tpl_vars['products']['pricesell']; ?>
&nbsp;</td>
      </tr>
      <tr>
        <td class="title">库存单位:</td>
        <td class="content"><?php echo $this->_tpl_vars['products']['unit']; ?>
&nbsp;</td>
      </tr>
      <tr>
        <td class="title">最小出库单位:</td>
        <td class="content"><?php echo $this->_tpl_vars['products']['minnum']; ?>
&nbsp;</td>
      </tr>
      <tr>
        <td class="title">最大出库单位:</td>
        <td class="content"><?php echo $this->_tpl_vars['products']['maxnum']; ?>
&nbsp;</td>
      </tr>
      <tr>
        <td class="title">预警数量:</td>
        <td class="content"><?php echo $this->_tpl_vars['products']['shopwarningnum']; ?>
&nbsp;</td>
      </tr>
      <tr>
        <td class="title">库存数量:</td>
        <td class="content"><?php echo $this->_tpl_vars['products']['stocks']; ?>
 <?php echo $this->_tpl_vars['products']['unit']; ?>

        <?php if ($this->_tpl_vars['products']['stocks'] > 0): ?>
        	&nbsp;/&nbsp;
        	<?php $this->_tag_stack[] = array('stocks', array('productid' => $this->_tpl_vars['products']['id'])); $_block_repeat=true;smarty_block_stocks($this->_tag_stack[count($this->_tag_stack)-1][1], null, $this, $_block_repeat);while ($_block_repeat) { ob_start(); ?>
            	<?php echo $this->_tpl_vars['stocks']['shop']; ?>
: <strong><?php echo $this->_tpl_vars['stocks']['stocks']; ?>
</strong> <?php echo $this->_tpl_vars['stocks']['unit']; ?>
;
            <?php $_block_content = ob_get_contents(); ob_end_clean(); $_block_repeat=false;echo smarty_block_stocks($this->_tag_stack[count($this->_tag_stack)-1][1], $_block_content, $this, $_block_repeat); }  array_pop($this->_tag_stack); ?>
        <?php endif; ?>
        &nbsp;</td>
      </tr>
      <tr>
        <td class="title">产品介绍:</td>
        <td class="content"><?php echo ((is_array($_tmp=$this->_tpl_vars['products']['intro'])) ? $this->_run_mod_handler('nl2br', true, $_tmp) : smarty_modifier_nl2br($_tmp)); ?>
&nbsp;</td>
      </tr>
      <tr class="noline">
        <td class="title">条码数字:</td>
        <td class="content"><?php echo $this->_tpl_vars['products']['barcode']; ?>
&nbsp;</td>
      </tr>
    </table>
    
    <div class="fr mt10">
    <a href="?m=inventory&s=products.php" class="btn">确定</a> 
    </div>
    <?php $_block_content = ob_get_contents(); ob_end_clean(); $_block_repeat=false;echo smarty_block_products($this->_tag_stack[count($this->_tag_stack)-1][1], $_block_content, $this, $_block_repeat); }  array_pop($this->_tag_stack); ?>
  </form>
</div>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "admin/bottom.php", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
</body>
</html>